package clientData;

import java.util.Date;

public class TopicData implements TopicDataInt {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** The id. */
	private int id;
	
	/** The title. */
	private String title;
	
	/** The creation time. */
	private Date creationTime;
	
	private MemberDataInt creator;
	
	public TopicData(int id, Date creationTime, String title,MemberDataInt creator){
		this.id = id;
		this.creationTime = creationTime;
		this.title = title;
		this.creator = creator;
	}
	
	/* (non-Javadoc)
	 * @see domainModel.TopicInt#getCreationTime()
	 */
	@Override
	public Date getCreationTime() {
		return this.creationTime;
	}

	/* (non-Javadoc)
	 * @see domainModel.TopicInt#getId()
	 */
	@Override
	public int getId() {
		return this.id;
	}

	/* (non-Javadoc)
	 * @see domainModel.TopicInt#getTitle()
	 */
	@Override
	public String getTitle() {
		return this.title;
	}

	public MemberDataInt getCreator(){
		return this.creator;
	}
}
